//
//  NSDate+Str.h
//  SecondPackage
//
//  Created by 韩艳锋 on 2019/7/5.
//  Copyright © 2019 韩艳锋. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSDate (Str)

-(NSString*)year;
-(NSString*)month;
-(NSString*)day;
-(NSString*)hour;
-(NSString*)minute;
-(NSString*)second;
-(NSString*)getFormateOne;
-(NSString*)getFormateTow;
+(instancetype)initWithStringFormat:(NSString*)string;

- (NSDate *)getNewDateWithDay:(int)day
                  dayRelative:(BOOL)dayRelative
                         hour:(int)hour
                 hourRelative:(BOOL)hourRelative
                       minute:(int)minute
               minuteRelative:(BOOL)minuteRelative;
@end

NS_ASSUME_NONNULL_END
